package ar.edu.ufasta.presupuestos.servicios.remito;

import java.util.List;

import ar.edu.ufasta.presupuestos.logica.entidades.remito.RemitoCompra;
import ar.edu.ufasta.presupuestos.servicios.persistencia.ObjectID;

public class RemitoServiceFacade {
	
	private static RemitoServiceFacade instance;
	private RemitoService service;
	
	private RemitoServiceFacade() {
		service = new RemitoService();
	}
	
	public static RemitoServiceFacade getInstancia(){
		
		if(instance==null){
			instance = new RemitoServiceFacade();
		}
		return instance;
	}
	
	public void addRemito(RemitoCompra remito){
		this.service.addRemito(remito);
	}
	
	public void removeRemito(ObjectID remitoId){
		this.service.removeRemito(remitoId);
	}

	public List<RemitoCompra> getAllRemitos(){
		return this.service.getAllRemito();
	}
	
}
